#coding:utf-8
try:
    a = 2
    b = 0
    print(a/b)
except:
    print('出错啦！')
print('------------')
a = 10
b = 0
try:
    c = a/b 
    print(c)
    #被除数为0的异常
except ZeroDivisionError as x:
    print(x)
else: #放在所有except语句后面
    print('no error')
    